package com.appspot.android2gather.stress;

import java.io.IOException;

import org.apache.commons.httpclient.HttpClient;
import org.apache.commons.httpclient.HttpException;
import org.apache.commons.httpclient.HttpMethod;
import org.apache.commons.httpclient.methods.GetMethod;

public class CpuStress
{   
    public static void main (String[] args)  
    {
        HttpClient client = new HttpClient();
        
        
        HttpMethod method = new GetMethod("http://letspooto.appspot.com/search?la=11.38&lo=46.26&r=100000&mx=100000");
        
        for (int i=0;i<10000;i++) {
            System.out.println(i);
            try
            {
                client.executeMethod( method );
            }
            catch ( HttpException e )
            {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }
            catch ( IOException e )
            {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }  
        }
        
    }
}
